package com.fzkj.random;

import java.util.Random;

public class GetRand {
    public static int getBlankNum(){
        int num = new Random().nextInt(7)+11; // 从[11,18)范围内随机获取一个整数
        if (num < 11){
            getBlankNum();
        }
        return num;
    }


    public static void main(String[] args) {
        int blankNum = getBlankNum();
        System.out.println(blankNum);
        int rand = (int)((Math.random()*9+1)*100000000);
        System.out.println("随机生成的6为数字："+rand);
    }


}

